<%-- 
    Document   : B2
    Created on : 2014/8/12, 上午 09:39:02
    Author     : sally
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
       String user=request.getParameter("user");
       if ( user !=null)
       session.setAttribute("user", user);
       session.setMaxInactiveInterval(10);   // 設定sessionid保留時間(秒)


%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>~~~~Hello B2!~~~~</h1>
	
	<%=   session.getId()                 %><br>
	<a href="B1.jsp;jsessionid=<%=   session.getId()  %>">B1</a>
	<%= user  %>
	
    </body>
</html>
